package com.kinon.norogamilk.bean;

/**
 * ��������
 */
public class ComBean {
    public byte[] bRec = null;
    //		public String sRecTime="";
    public String sComPort = "";
    public int size;

    public ComBean(String sPort, byte[] buffer, int size) {
        sComPort = sPort;
        this.size = size;
        bRec = new byte[size];
        for (int i = 0; i < size; i++) {
            bRec[i] = buffer[i];
        }
//			SimpleDateFormat sDateFormat = new SimpleDateFormat("hh:mm:ss");
//			sRecTime = sDateFormat.format(new java.util.Date());
    }

    public byte[] getbRec() {
        return bRec;
    }

    public void setbRec(byte[] bRec) {
        this.bRec = bRec;
    }

    public String getsComPort() {
        return sComPort;
    }

    public void setsComPort(String sComPort) {
        this.sComPort = sComPort;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        StringBuilder strBuilder = new StringBuilder();
        int j = bRec.length;
        for (int i = 0; i < j; i++) {
            strBuilder.append(bRec[i]);
            strBuilder.append("  ");
        }
        return strBuilder.toString();
    }
}